<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>{% block title %}{% endblock  %}</title>
  <meta name="keywords" content="原材料采购供应链，志力">
  <meta name="description" content="原材料采购供应链，志力，五阿哥，钢铁">
  <meta http-equiv="x-ua-compatible" content="chrome=1, ie=edge">
  <meta name="format-detection" content="telephone=no, email=no" />
  <link rel="shortcut icon" href="/images/section4-t.png" />
  <link rel="stylesheet" href="/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/css/app.css" media="all">
  <link rel="stylesheet" href="/css/base.css" media="all">
  <link rel="stylesheet" href="/css/style.css" media="all">
  {% block head %}{% endblock  %}
</head>
<body>
<div class="layui-layout layui-layout-admin kit-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">志力供应链平台运营系统</div>
    <div class="layui-logo kit-logo-mobile">志力</div>
    <ul class="layui-nav layui-layout-left kit-nav" kit-one-level>
      {% if type == 1 %}
      <li class="layui-nav-item item-this"><a href="/business/index">业务中心</a></li>
      <li class="layui-nav-item"><a href="/user/index">用户中心</a></li>
      <li class="layui-nav-item"><a href="/base/area">基础中心</a></li>
      {% elseif type == 2 %}
      <li class="layui-nav-item"><a href="/business/index">业务中心</a></li>
      <li class="layui-nav-item item-this"><a href="/user/index">用户中心</a></li>
      <li class="layui-nav-item"><a href="/base/area">基础中心</a></li>
      {% elseif type == 3 %}
      <li class="layui-nav-item"><a href="/business/index">业务中心</a></li>
      <li class="layui-nav-item"><a href="/user/index">用户中心</a></li>
      <li class="layui-nav-item item-this"><a href="/base/area">基础中心</a></li>
      {% endif %}
    </ul>
    <ul class="layui-nav layui-layout-right kit-nav">
      <li class="layui-nav-item"><a href="javascript:;" id="pay"><i class="fa fa-gratipay" aria-hidden="true"></i> 捐赠我</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="http://m.zhengjinfan.cn/images/0.jpg" class="layui-nav-img"> Van
        </a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;">基本资料</a></dd>
          <dd><a href="javascript:;">安全设置</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="javascript:;"><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a></li>
    </ul>
  </div>

  <div class="layui-side layui-bg-black kit-side">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="kitNavbar" kit-navbar>
        {% for key, val in content.title %}
        {% if val.isShow === true %}
        <li class="layui-nav-item layui-nav-itemed leftSide">
          {% if val.isChild === true %}
          <a href="javascript:;"><i class="{{val.icon}}"></i><span class="item-title">{{val.name}}</span></a>
          <dl class="layui-nav-child">
            {% for newKey, newVal in val.child %}
            {% if newVal.url === target %}
            <dd class="layui-this">
              <a href="./{{newVal.url}}" class="child-icon">
                <i class="{{newVal.icon}}"></i>
                <span>{{newVal.name}}</span>
              </a>
            </dd>
            {% else %}
            <dd>
              <a href="./{{newVal.url}}" class="child-icon">
                <i class="{{newVal.icon}}"></i>
                <span>{{newVal.name}}</span>
              </a>
            </dd>
            {% endif %}
            {% endfor %}
          </dl>
          {% else %}
          <a href="javascript:;" data-url="/components/table/table.html" data-name="table" kit-loader><span> 表格(page)</span></a>
          {% endif %}
        </li>
        {% else %}
        <li id="{{val.isShow}}" class="layui-nav-item leftSide">
          {% if val.isChild === true %}
          <a href="javascript:;">
            <i class="{{val.icon}}"></i>
            <span class="item-title">{{val.name}}</span>
          </a>
          <dl class="layui-nav-child">
            {% for newKey, newVal in val.child %}
            {% if newVal.url === target %}
            <dd class="layui-this">
              <a href="./{{newVal.url}}" class="child-icon">
                <i class="{{newVal.icon}}"></i>
                <span>{{newVal.name}}</span>
              </a>
            </dd>
            {% else %}
            <dd>
              <a href="./{{newVal.url}}" class="child-icon">
                <i class="{{newVal.icon}}"></i>
                <span>{{newVal.name}}</span>
              </a>
            </dd>
            {% endif %}
            {% endfor %}
          </dl>
          {% else %}
          <a href="javascript:;" data-url="/components/table/table.html" data-name="table" kit-loader><i class="fa fa-plug" aria-hidden="true"></i><span> 表格(page)</span></a>
          {% endif %}
        </li>
        {% endif %}
        {% endfor %}
      </ul>
    </div>
  </div>
  <div class="layui-body" id="container">
    <!-- 内容主体区域 -->
    {% block content %}{% endblock  %}
  </div>

  <div class="layui-footer">
    <!-- 底部固定区域 -->
    2017 &copy;
    <a href="http://kit.zhengjinfan.cn/">kit.zhengjinfan.cn/</a> MIT license

  </div>
</div>
</body>
<script src="/layui/layui.js"></script>
<script>
  layui.use('element' , function () {
      
  })
</script>
{%  block js %}{% endblock  %}
</html>
